<extend name="Public:base" />
<block name="header" >
    <span class="action-span"><a href="">优惠券列表</a></span>
    <span class="action-span1"><a href="">武汉同兴一站办企业服务有限公司 管理中心</a></span>
  <!--  <span id="search_id" class="action-span1"> - 商品列表 </span>-->
    <div style="clear:both"></div>
</block>

<block name="body">


<!-- 商品列表 -->

<hr class="list-div" id="listDiv">
    <table cellpadding="3" cellspacing="1">
        <tr>
            <th>编号</th>
            <th>赞助商名称</th>
            <th>优惠券名称</th>
            <th>优惠券介绍</th>
            <th>兑换所需积分</th>
            <th>VIP专属</th>
            <th>开始领取时间</th>
            <th>结束领取时间</th>
            <th>可以使用时间</th>
            <th>失效类型</th>
            <th>失效时间</th>
            <!--<th>失效周期</th>-->
            <th>优惠券数量</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        <volist name="list" id="vo">
        <tr>
            <td align="center">{$vo.entity_coupon_id}</td>
            <td align="center"><span>{$vo.sponsor_id}</span></td>
            <td align="center"><span>{$vo.coupon_name}</span></td>
            <td align="center"><span>{$vo.intro}</span></td>
            <td align="center"><span>{$vo.integral}</span></td>
            <if condition="$vo['vip_exclusive'] eq 0">
                <td align="center"><span>普通优惠券</span></td>
                    <else />
                    <td align="center"><span>VIP{$vo.vip_exclusive}以上可以兑换</span></td>
            </if>
            <td align="center"><span>{$vo.start_time|date='Y-m-d H:i:s',###}</span></td>
            <td align="center"><span>{$vo.end_time|date='Y-m-d H:i:s',###}</span></td>
            <td align="center"><span>{$vo.use_time}天</span></td>
            <if condition="$vo['lost_type'] eq 1">
                <td align="center"><span>周期性失效</span></td>
                    <else />
                    <td align="center"><span>定期失效</span></td>
            </if>
            <if condition="$vo['lost_type'] eq 1">
                <td align="center"><span>{$vo.lost_cycle}天</span></td>
                <else />
                <td align="center"><span><span>{$vo.lost_time|date='Y-m-d H:i:s ',###}</span></span></td>
            </if>
            <!--<td align="center"><span>{$vo.lost_time|date='Y-m-d H:i:s ',###}</span></td>-->
            <!--<td align="center"><span>{$vo.lost_cycle|date='d ',###}天</span></td>-->
            <td align="center"><span>{$vo.coupon_num}</span></td>
            <td align="center"><img src="__PUBLIC_ADMIN__/Images/<eq name='vo.state' value='1'>yes.gif<else/>no.gif</eq>"/></td>
            
            <td align="center">
            <a href="{:U('edit','id='.$vo['entity_coupon_id'].'&tableName=couponentity_list')}">编辑</a>
            <a href="{:U('dels','id='.$vo['entity_coupon_id'].'&tableName=couponentity_list')}" >删除</a>
            </td>
        </tr>
        </volist>
    </table>
    <!-- 分页开始 -->
    <table id="page-table" cellspacing="0">
        <tr>
            <td align="center" nowrap="true">
              {$page}
            </td>
        </tr>
    </table>
 <!--分页结束 -->
</div>
</block>